package com.zygh.policeasset.utils;

import com.github.pagehelper.PageInfo;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import org.apache.commons.beanutils.BeanUtils;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/utils/PageUtils.class */
public class PageUtils {
    public static <Do, Vo> PageInfo<Vo> convertPageInfoVo(List<Do> list, List<Vo> convertList) throws InvocationTargetException, IllegalAccessException {
        PageInfo<Do> pageInfoDo = PageInfo.of((List) list);
        PageInfo<Vo> pageInfo = new PageInfo<>();
        BeanUtils.copyProperties(pageInfoDo, pageInfo);
        pageInfo.setList(convertList);
        return pageInfo;
    }
}